<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>ArrayMath.lowess2</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="ArrayMath.htm">ArrayMath</a>.<wbr>lowess2</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public ArrayMath lowess2(double[] b [, double smoothness [, int iteration ]])
</div>
<p class="heading2">Description</p>
<div class="content">
Fits a curve through the data points in the ArrayMath object using the LOWESS algorithm, where the spacing of the data points is supplied by the given array.<br><br>
Please refer to <a href="ArrayMath.lowess.htm">ArrayMath.lowess</a> for a brief description of the LOWESS algorithm.<br><br>
In this method, each element of the ArrayMath object will be replaced by the corresponding value computed using the LOWESS algorithm.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>b</td><td>(Mandatory)</td><td>An array of numbers providing the x coordinates of the data points in the ArrayMath object.</td></tr><tr><td>smoothness</td><td>0.25</td><td>The smoothness factor. It must be between 0 - 1. It is the portion of points used in finding the n nearest points. In other words, n = smoothness * no_of_points. A larger value will result in a smoother the curve. A smaller value will result in the curve tracking the data points better.<br><br>
For LOWESS to have any smoothing effect at all, n must be at least 3. You may need to use a large smoothness factor if you only have a few data points.</td></tr><tr><td>iteration</td><td>0</td><td>The number of additional iteration used in the LOWESS algorithm. Unless your data is extremely noisy, in most case no additional iteration is necessary.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
The current ArrayMath object.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
